import request from '@/utils/request'
import { encryptionData } from '@/utils/com'
import Qs from 'qs'

export function msgPage(data) {
  return request({
    url: '/jcdOrder/sysMessage/msgPage',
    method: 'get',
    headers: encryptionData(data, '/sysMessage/msgPage'),
    params: data
  })
}
export function deleteSysMessage(data) {
  return request({
    url: '/jcdOrder/sysMessage/deleteSysMessage',
    method: 'get',
    headers: encryptionData(data, '/sysMessage/deleteSysMessage'),
    params: data
  })
}
export function getList(data) {
  return request({
    url: '/jcdOrder/sysMessage/pageStoreMessage',
    method: 'get',
    headers: encryptionData(data, '/sysMessage/pageStoreMessage'),
    params: data
  })
}

export function delList(data) {
  return request({
    url: '/jcdOrder/sysMessage/deleteSysMessage',
    method: 'post',
    headers: encryptionData(data, '/sysMessage/deleteSysMessage'),
    data: Qs.stringify(data)
  })
}
